package com.easy.frame.servers.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Date;

/**
 * 消息记录表
 *
 * @author tp
 * @since 2021-01-18
 */
@Getter
@Setter
@ToString
@TableName("broker_message_log")
@ApiModel("消息记录表")
public class BrokerMessageLog {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("消息唯一ID")
    private String messageId;

    @ApiModelProperty("消息内容")
    private String message;

    @ApiModelProperty("重试次数")
    private Integer tryCount;

    @ApiModelProperty("消息投递状态  0 投递中 1 投递成功   2 投递失败")
    private String status;

    @ApiModelProperty("下一次重试时间 或 超时时间")
    private Date nextRetry;

    @ApiModelProperty("创建人")
    private Long createBy;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("修改人")
    private Long updateBy;

    @ApiModelProperty("修改时间")
    private Date updateTime;
}
